<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.portalbs.basic.comm.app.AppTree"/>
<script>
	function AppTreeSave_onclick(panel,page){
		
		var tree = page.find("AppTree");
		
		var ids = tree.getCheckNodesIds(2);
		
		var nodes = tree.getCheckNodes(2);
		
		if(nodes.length == 0){
			alert("至少选择一个应用发布！");
		}
		
		var sendSet = new Yacon.data.DataSet(page);
		
		sendSet.setWhereField("appIDBak",ids);
		sendSet.setWhereField("commIDBak",page.element.parameter.commID);
		
		sendSet.switchMessage("publish");
		
		page.windows.closeWindow();
		
	}
</script>